package com.one.constant;

import io.swagger.models.auth.In;

/**
 * @ClassName: RequestReturnConstant
 * @Date: 2022/1/14 10:07
 * @Description: 统一返回相关常数
 */
public class RequestReturnConstant {

    //统一分页返回的起始页码
    public static final int UNIFY_RETURN_INT_PAGE_NO = 1;

    //统一返回的每页的容量
    public static final int UNIFY_RETURN_INIT_PAGE_SIZE = 3;

    /**
     * 成功状态码
     */
    public static final Integer RETURN_SUCCESS_CODE = 1000;

    /**
     * 成功状态信息
     */
    public static final String RETURN_SUCCESS_MESSAGE = "SUCCESS";
    /**
     * 服务器系统异常
     */
    public static final Integer SERVER_SYSTEM_CODE = 9999;
    public static final String SERVER_SYSTEM_MESSAGE = "服务器系统异常";
    /**
     * 失败状态码
     */
    public static final Integer RETURN_FAIL_CODE = 5000;

    /**
     * 失败状态信息
     */
    public static final String RETURN_FAIL_MESSAGE = "FAIL";
    /**
     * 微信授权失败
     */
    public static final Integer RETURN_WECHAT_AUTH_REGIS_CODE = 5001;
    public static final String RETURN_WECHAT_AUTH_REGIS_MESSAGE = "微信授权失败";
    /**
     *  用户未登录
     */
    public static final Integer USER_NO_LOGIN_CODE = 5002;
    public static final String USER_NO_LOGIN__MSG = "用户未登录";

    /**
     * 验证码错误 状态码
     */
    public static final Integer VERIFICATION_FAIL_CODE = 5010;
    /**
     * 验证码错误信息
     */
    public static final String VERIFICATION_FAIL_MSG = "验证码错误";
    /**
     * 验证码错误 状态码
     */
    public static final Integer VERIFICATION_TIMEOUT_FAIL_CODE = 5011;
    /**
     *  验证码错误信息
     */
    public static final String VERIFICATION_TIMEOUT_FAIL_MSG = "验证码已过期，请重新发送";
    /**
     * 手机号或密码错误
     */
    public static final Integer PHONE_PASSWORD_FAIL_CODE = 5012;
    public static final String PHONE_PASSWORD_FAIL_MSG = "手机号或密码错误";
    /**
     * 手机号已被绑定
     */
    public static final Integer PHONE_BINDING_FAIL_CODE = 5013;
    public static final String PHONE_BINDING_FAIL_MSG = "手机号已被绑定";
    /**
     * 库存不足状态码
     */
    public static final Integer STOCK_NOT_ENOUGH_CODE = 6001;
    /**
     * 库存不足状态信息
     */
    public static final String STOCK_NOT_ENOUGH_MSG = "库存不足";
    /**
     * 商品不存在状态码
     */
    public static final Integer PRODUCT_NOT_EXIST_CODE = 6002;
    /**
     * 商品不存在状态信息
     */
    public static final String PRODUCT_NOT_EXIST_MSG = "商品不存在";
    /**
     * 相同用户只能抢购一次状态码
     */
    public static final Integer FLASH_SALE_ONLY_BUY_ONCE_CODE = 6003;
    /**
     * 相同用户只能抢购一次状态信息
     */
    public static final String FLASH_SALE_ONLY_BUY_ONCE_MSG = "相同用户只能抢购一次";
    /**
     * 订单生成异常状态码
     */
    public static final Integer CREATE_ORDER_ERROR_CODE = 6004;
    /**
     * 订单生成异常状态信息
     */
    public static final String CREATE_ORDER_ERROR_MSG = "订单生成异常";


    /**
     * 并非抢购商品异常状态码
     */
    public static final Integer NOT_RUSH_PRODUCT_CODE = 7001;
    /**
     * 并非抢购商品异常状态信息
     */
    public static final String NOT_RUSH_PRODUCT_MSG = "并非抢购商品";

    /**
     * 数量不为1错误码
     */
    public static final Integer NUM_NOT_ONE_CODE = 7002;
    /**
     * 数量不为1状态信息
     */
    public static final String NUM_NOT_ONE_MSG = "商品数量不正确";



    /**
     * 订单生成成功状态信息
     */
    public static final String CREATE_ORDER_SUCCESS_MSG = "订单生成成功";
    /**
     * 金额不正确状态码
     */
    public static final Integer PRICE_ERROR_CODE = 6006;
    /**
     * 金额不正确状态信息
     */
    public static final String PRICE_ERROR_MSG = "金额不正确";
    /**
     * 下单失败状态码
     */
    public static final Integer ORDER_FAIL_CODE = 6007;
    /**
     * 下单失败状态信息
     */
    public static final String ORDER_FAIL_MSG = "下单失败";
    /**
     * 获取下单链接成功状态信息
     */
    public static final String GET_ORDER_URL_SUCCESS_MSG = "获取下单链接成功";
    /**
     * 获取下单链接失败状态码
     */
    public static final Integer GET_ORDER_URL_FAIL_CODE = 7003;
    /**
     * 获取下单链接失败状态信息
     */
    public static final String GET_ORDER_URL_FAIL_MSG = "获取下单链接失败";
    /**
     * 添加购物车成功状态信息
     */
    public static final String ADD_CART_SUCCESS_MSG = "添加购物车成功";
    /**
     * 添加购物车成功状态信息
     */
    public static final String DELETE_CART_SUCCESS_MSG = "从购物车中删除商品成功";
    /**
     * 清空购物车成功状态信息
     */
    public static final String DELETE_ALL_CART_SUCCESS_MSG = "清空购物车成功";
    /**
     * 删除购物车成功状态码
     */
    public static final Integer UPDATE_CART_PRODUCT_NUM_SUCCESS_CODE = 6010;
    /**
     * 修改购物车商品数量成功
     */
    public static final String UPDATE_CART_PRODUCT_NUM_SUCCESS_MSG = "修改购物车商品数量成功";

    /**
     * 移入收藏夹成功状态码
     */
    public static final Integer MOVE_TO_COLLECT_SUCCESS_CODE = 6011;
    /**
     * 移入收藏夹成功状态信息
     */
    public static final String MOVE_TO_COLLECT_SUCCESS_MSG = "移入收藏夹成功";

    /**
     * 获取优惠券失败状态码
     */
    public static final Integer NOT_FOUND_CASH_COUPON_CODE = 6012;


    /**
     * 没有获取优惠券状态信息
     */
    public static final String NOT_FOUND_CASH_COUPON_MSG = "兑换优惠券失败";

    /**
     * 用户优惠券未拥有信息
     */
    public static final String USER_TICKET_MSG = "用户账户优惠券";

//    public static final String MOVE_TO_COLLECT_SUCCESS_MSG = "移入收藏夹成功";

    /**
     * 移入收藏夹失败状态码
     */
    public static final Integer MOVE_TO_COLLECT_ERROR_CODE = 6012;
    /**
     * 移入收藏夹失败状态信息
     */
    public static final String MOVE_TO_COLLECT_ERROR_MSG = "移入收藏夹失败";

    /**
     * 清空收藏夹失败状态码
     */
    public static final Integer CLEAR_USER_COLLECT_ERROR_CODE = 6013;

    /**
     * 清空收藏夹失败状态信息
     */
    public static final String CLEAR_USER_COLLECT_ERROR_MSG = "清空收藏夹失败";

    /**
     * 清空足迹失败状态码
     */
    public static final Integer CLEAR_USER_FOOTPOINT_ERROR_CODE = 6013;

    /**
     * 清空足迹失败状态信息
     */
    public static final String CLEAR_USER_FOOTPOINT_ERROR_MSG = "清空足迹失败";

    /**
     * 没有当前商品状态码
     */
    public static final Integer NO_PRODUCT_CODE = 6014;


    /**
     * 支付订单失败状态码
     */
    public static final Integer PAY_ORDER_ERROR_CODE = 6013;
    /**
     * 支付订单失败状态信息
     */
    public static final String PAY_ORDER_ERROR_MSG = "订单不是待支付订单";
    /**
     * 优惠券异常状态码
     */
    public static final Integer TICKET_ERROR_CODE = 7004;
    /**
     * 优惠券异常状态信息
     */
    public static final String TICKET_ERROR_MSG = "优惠券异常";
    /**
     * 添加购物车失败状态码
     */
    public static final Integer ADD_CART_FAIL_CODE = 7005;
    /**
     * 添加购物车失败状态信息
     */
    public static final String ADD_CART_FAIL_MSG = "添加购物车失败";
    /**
     * 删除购物车失败状态码
     */
    public static final Integer REMOVE_CART_FAIL_CODE = 7006;
    /**
     * 删除购物车失败状态信息
     */
    public static final String REMOVE_CART_FAIL_MSG = "删除购物车失败";

    /**
     * 查询用户的全部购物车成功状态信息
     */
    public static final String SELECT_ALL_CART_INFO_SUCCESS_MSG = "查询用户的全部购物车成功";

    /**
     * 清空购物车失败状态信息
     */
    public static final Integer EMPTY_CART_FAIL_CODE = 7007;
    /**
     * 删除购物车失败状态信息
     */
    public static final String EMPTY_CART_FAIL_MSG = "清空购物车失败";

    /**
     * 修改购物车商品数量失败状态码
     */
    public static final Integer UPDATE_CART_PRODUCTNUM_FAIL_CODE = 7008;
    /**
     * 修改购物车商品数量失败状态信息
     */
    public static final String UPDATE_CART_PRODUCTNUM_FAIL_MSG = "修改购物车商品数量失败";

    /**
     * 修改购物车商品数量失败状态码
     */
    public static final Integer TICKET_NOT_USE_CODE = 7009;
    /**
     * 修改购物车商品数量失败状态信息
     */
    public static final String TICKET_NOT_USE_MSG = "优惠券不可用";

}
